﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DutySCRegisterEntry.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.DutySCRegister.DutySCRegisterEntry" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register TagPrefix="apj" Namespace="APJ.Web.UI.WebControls" Assembly="APJ.Web.UI.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../../Javascript/CommonFunction.js"></script>
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        function btnDeleteClick(strMessage) {
            if (confirm(strMessage)) {
                return true;
            }
            else {
                return false;
            }
        }

        function btnSaveClick(strMessage) {
            if (document.getElementById("dllShift").selectedIndex == 0) {
                alert(strMessage);
                return false;
            }
            else {
                return processing(true); //huangyao 20090302: avoid submit more than one times
                //return true;
            }
        }

        function CancelEnter() {
            var obj = event.srcElement;
            if (obj.id == "txtRegDate" || obj.id == "txtRegTime") {
                return false;
            }
            else {
                return true;
            }
        }

        //----------------------- Add by zengshunbo 2009-03-12 same TD:1216 -----------------------
        document.onkeydown = function () {
            var k = window.event.keyCode;
            if (k == 116) {
                window.event.keyCode = 0;
                window.event.returnValue = false;
            }
        }
        //--------------------- End add by zengshunbo 2009-03-12 same TD:1216 ---------------------
        //added by Nathan 2015-08-20
        function backUrl() {
            var pageID = getQueryString("PageID");

            if (pageID == "DutySCRegisterEnquiry") {
                window.location.href = "../DutySCRegister/DutySCRegisterEnquiry.aspx?isBack=1";
            }
            if (pageID == "OutstandingActivitiesListing") {
                window.location.href = "../AOActivityListing/OutstandingActivitiesListing.aspx?isBack=1";
            }
        }
        //End added by Nathan 2015-08-20    

    </script>
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
</head>
<body onkeydown="return CancelEnter();">
    <form id="form1" runat="server">
    <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
    </AjaxControlToolkit:ToolkitScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
        <tr>
            <td colspan="2" class="Page_Head">
                <WebStructure:PageHead ID="PageHead" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="Page_Left">
                <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M1407" />
            </td>
            <td class="Page_Right">
                <table class="Page_Contents">
                    <tr>
                        <td class="TabStrip">
                            <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140702" ParentMenuID="M1407" DMenuMode="CurrOnly"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="Contents" style="height: 16px">
                            <!--**********context Begin *****************-->
                            <div style="display: none;">
                                <asp:TextBox ID="txtHideReason" runat="server" TextMode="MultiLine"></asp:TextBox>
                                <asp:TextBox ID="txtHideRegDate" runat="server"></asp:TextBox>
                                <asp:TextBox ID="txtHideRegTime" runat="server"></asp:TextBox>
                            </div>
                            <input type="hidden" id="hdnDSCEventStatus" name="hdnDSCEventStatus" runat="server">
                            <fieldset>
                                <legend class="Title1">
                                    <asp:Label ID="lblInfo" runat="server" Text="Info."></asp:Label></legend>
                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td style="width: 150px">
                                            <asp:Label ID="lblRegNo" runat="server" Text="Label"></asp:Label>
                                        </td>
                                        <td style="width: 200px">
                                            <asp:Label ID="lblRegNoValue" runat="server"></asp:Label>
                                            <asp:Image ID="imgStatus" runat="server" />
                                        </td>
                                        <td>
                                        </td>
                                        <td style="width: 77px">
                                            <asp:Label ID="lblStatus" runat="server" Text="Status" Visible="False"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStatusValue" runat="server" Visible="False"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblRegDateTime" runat="server" Text="Register Time:"></asp:Label>
                                            <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="4px"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtRegDate" runat="server" Width="72px" BorderStyle="None"></asp:TextBox><asp:TextBox
                                                ID="txtRegTime" runat="server" Width="38px" BorderStyle="None"></asp:TextBox><asp:Button
                                                    ID="btnRegDateTime" runat="server" Text="..." />
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblShift" runat="server" Text="Shift"></asp:Label>
                                            <em id="emShift">*</em>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="dllShift" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblStaffID" runat="server" Text="Staff ID"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStaffIDValue" runat="server" Text="Label"></asp:Label>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStaffName" runat="server" Text="Name"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStaffNameValue" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 16px;">
                                            <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
                                            <asp:Image ID="Image1" runat="server" Width="0px" />
                                        </td>
                                        <td style="height: 16px;">
                                            <asp:Label ID="lblTitleValue" runat="server" Text="Label"></asp:Label>
                                        </td>
                                        <td style="height: 16px;">
                                        </td>
                                        <td style="height: 16px;">
                                        </td>
                                        <td style="height: 16px;">
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <!--**********context End *****************-->
                        </td>
                    </tr>
                    <tr>
                        <td class="Page_Foot" style="height: 54px">
                            <WebStructure:PageFoot ID="PageFoot" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="divFlowMenu" runat="server">
        <img src="../../Images/up.gif" onclick="SwitchMenu(this);" />
        <!--add flow menu items begin-->
        <div>
            <asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_Click" /></div>
        <div>
            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /></div>
        <div>
            <asp:Button ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click" /></div>
        <!--add flow menu items end-->
        <%--added by Nathan 2015-08-15--%>
        <div>
            <asp:Button ID="btnBack" runat="server" Text="Back" Enabled="false" OnClientClick="javascript:backUrl();return false;" />
        </div>
        <%-- End added by Nathan 2015-08-15--%>
    </div>
    <AjaxControlToolkit:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender_FlowMenu"
        runat="server" TargetControlID="divFlowMenu" VerticalOffset="78" HorizontalOffset="1100">
    </AjaxControlToolkit:AlwaysVisibleControlExtender>
    </form>
</body>
</html>
<script type="text/javascript">
    LoadHoverEvent(document.all.divFlowMenu);
    Sys.Application.add_load(SetFlowPos);
    window.onscroll = SetFlowPos;
    window.onresize = SetFlowPos;        
</script>
